const { createProxyMiddleware } = require('http-proxy-middleware');

module.exports = function (app) {
  app.use(
    createProxyMiddleware("/api",{
      target: 'http://10.10.20.38:1212', //服务器接口地址
      changeOrigin: true,
    })
  );
};